inspector: Make picking objects show them
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jul 2020 21:30:16 +0000 (17:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jul 2020 21:30:16 +0000 (17:30 -0400)
Changing the selection in the object tree is
not a useful action if we are already in the
object details. Most likely, a user who picks
an object wants to inspect its details, so
just always show them.

Fixes: #1876
gtk/inspector/inspect-button.c

index 46f780e797ad7b12e11e81eb974b8e8588a3274a..ed5c2d30997c955948749f9e427cd93afb117c6f 100644 (file)
@@ -92,7 +92,7 @@ select_widget (GtkInspectorWindow *iw,
 {
   GtkInspectorObjectTree *wt = GTK_INSPECTOR_OBJECT_TREE (iw->object_tree);
 
-  gtk_inspector_object_tree_select_object (wt, G_OBJECT (widget));
+  gtk_inspector_object_tree_activate_object (wt, G_OBJECT (widget));
 }
 
 static void